package com.ssy.lingxi.message.repository;


import com.ssy.lingxi.message.entity.MainMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 主消息仓库类
 * @author yzc
 * @version 2.0.0
 * @date 2020/10/27
 */
@Repository
public interface MainMessageRepository extends JpaRepository<MainMessage, Long> {

    List<MainMessage> findAllByTypeAndExpireGreaterThan(Integer type, Long currentTimeMillis);
}
